/**
 * @author Mie Plougstrup, Anders Abildgaard, Bo Stokholm 
 * @Version 16-12-2014
 */
package modelLayer;

public class ChartecCode {
	private int chartecCode; // First 4 digits in chartec number.
	private String shippingPlace;
	private boolean hasDeliveryNo;

	/**
	 * Constructor 1: For creation from ctrClass.
	 * 
	 * @param chartecCode
	 * @param shippingPlace
	 * @param haveDeliveryNo
	 */
	public ChartecCode(int chartecCode, String shippingPlace,
			boolean haveDeliveryNo) {
		this.chartecCode = chartecCode;
		this.shippingPlace = shippingPlace;
		this.hasDeliveryNo = haveDeliveryNo;
	}
	
	/**
	 * Constructor 2: For creation from dbClass.
	 */
	public ChartecCode() {
		this.chartecCode = -1;
		this.shippingPlace = null;
		this.hasDeliveryNo = false;
	}

	/**
	 * Constructor 3: For creation as association.
	 */
	public ChartecCode(int chartecCode) {
		this.chartecCode = chartecCode;
		this.shippingPlace = null;
		this.hasDeliveryNo = false;
	}

	/**
	 * @return the chartecCode
	 */
	public int getChartecCode() {
		return chartecCode;
	}

	/**
	 * @param chartecCode the chartecCode to set
	 */
	public void setChartecCode(int chartecCode) {
		this.chartecCode = chartecCode;
	}

	/**
	 * @return the shippingPlace
	 */
	public String getShippingPlace() {
		return shippingPlace;
	}

	/**
	 * @param shippingPlace the shippingPlace to set
	 */
	public void setShippingPlace(String shippingPlace) {
		this.shippingPlace = shippingPlace;
	}

	/**
	 * @return the haveDeliveryNo
	 */
	public boolean hasDeliveryNo() {
		return hasDeliveryNo;
	}

	/**
	 * @param haveDeliveryNo the haveDeliveryNo to set
	 */
	public void setHasDeliveryNo(boolean haveDeliveryNo) {
		this.hasDeliveryNo = haveDeliveryNo;
	}

}
